﻿<%@ Page Title="" Language="C#" MasterPageFile="~/en/Main.master" AutoEventWireup="true"
    CodeFile="MediaReports.aspx.cs" Inherits="en_NewsCenter_MediaReports" %>

<%@ Import Namespace="Wsitech.Model" %>
<%@ Import Namespace="Wsitech.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        <%=Info!=null? Info.Title:"Media Reports Not Found" %>-Legend Holdings</title>
    <!--news-->
    <link href="/en/!css/news.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/en/!js/news.js" language="javascript"></script>
    <!--news-->
    <!--myFocus-->
    <script src="/en/!js/myfocus/myfocus-1.2.4.full.js" type="text/javascript"></script>
    <script type="text/javascript">
        myFocus.set({
            //焦点图盒子ID
            id: 'myFocus',
            //切换时间间隔(秒)
            time: 3,
            //设置图片区域宽度(像素)
            width: 680,
            //设置图片区域高度(像素)
            height: 300
        });
    </script>
    <!--myFocus-->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="main">
        <div class="main_left">
            <div class="business_link">
                <p class="r_link">
                    Related links</p>
                <ul class="r_linklist">
                    <li><a href="/en/About/ChairmanNote.aspx">About</a></li>
                    <li><a href="/en/About/OurHistory.aspx">Our History</a></li>
                    <li><a href="/en/Leadership/Governance.aspx">Leadership</a></li>
                    <li><a href="/en/Biz/CoreAsset/Overview.aspx">Our Business</a></li>
                    <li><a href="/en/MgmtCulture/Index.aspx">Management Philosophy/ Culture</a></li>
                    <li><a href="/en/Careers/Index.aspx">Careers</a></li>
                </ul>
            </div>
        </div>
        <div class="main_right">
            <p class="pagenavi pagenavi_news">
                <a href="/en/Index.aspx">Home</a> > <a href="/en/NewsCenter/Index.aspx">News</a>
                > Media Reports</p>
            <%if (Info != null)
              {
            %>
            <p class="news_title news_border">
                <%=Info.Title %>
                <%=Info.SubTitle!=""?"—— "+Info.SubTitle:"" %></p>
            <p class="news_writer">
                <!--时间-->
                <%if (Info.IsFromMedia)
                  { 
                %>
                <span>
                    <%=Info.MediaPublishTime.ToString("MMMM dd, yyyy", new System.Globalization.CultureInfo("en-us")) + " | "%></span><!--媒体名称-->
                <%if (Info.MediaName != "")
                  { 
                %>
                <span>
                    <%=Info.MediaName %></span>
                <%
                    } %>
                <%
                    }
                  else
                  {
                %>
                <span>PublishTime：<%=Info.PublishTime.ToString("MMMM dd, yyyy", new System.Globalization.CultureInfo("en-us"))%></span>
                <%
                    } %>
            </p>
            <div class="news_writer">
                <!--所属公司-->
                Related Company: <span>
                    <%=CompanyInfoBLL.Instance.GetEnCompanyName(Info.CompanyId) %></span>
                <!--资源下载-->
                <%if (Info.SourcePath != "")
                  { 
                %>
                <p class="blur" title="<%=System.IO.Path.GetFileName(Info.SourcePath) %>">
                    <asp:LinkButton ID="LinkButton1" Text="Download" runat="server" OnClick="ResourceDownload">
                       <%=System.IO.Path.GetFileNameWithoutExtension(Info.SourcePath) %>
                    </asp:LinkButton>
                </p>
                <%
                    } %>
            </div>
            <br />
            <% IList<AttachInfo> list = AttachInfoBLL.Instance.GetActiveListByInfoId(Info.TextInfoId);%>
            <%if (list.Count > 1)
              { 
            %>
            <div class="news_carousel">
                <div id="myFocus">
                    <ul class="pic">
                        <!--内容列表-->
                        <%foreach (AttachInfo attach in AttachInfoBLL.Instance.GetActiveListByInfoId(Info.TextInfoId))
                          {
                        %>
                        <li>
                            <img src="<%=attach.SourcePath %>" thumb="<%=AttachInfoBLL.Instance.GetThumbPath(attach.SourcePath) %>"
                                text="<%=attach.Description %>" /></li>
                        <%
                            } %>
                    </ul>
                    <%--<p class="margintopl">
                        <img src="/!images/newsimg_left.gif" /></p>
                    <p class="margintopr">
                        <img src="/!images/newsimg_right.gif" /></p>--%>
                </div>
            </div>
            <% 
                }
              else if (list.Count == 1)
              {
            %>
            <div class="singlePic">
                <img src="<%=list[0].SourcePath %>" />
                <p>
                    <%=list[0].Description %>
                </p>
            </div>
            <%
                } %>
            <div class="news_info">
                <%=Info.Content %>
            </div>
            <%--<div class="news_btn" runat="server" id="controlPanel">
                <p>
                    <asp:HyperLink ID="hlPrev" NavigateUrl="" Text="Previous Story : " runat="server" /></p>
                <p>
                    <asp:HyperLink ID="hlNext" NavigateUrl="" Text="Next Story : " runat="server" /></p>
                <p>
                    <asp:HyperLink ID="hlBack" NavigateUrl="" Text="Return" runat="server" /></p>
            </div>--%>
            <p class="clear">
            </p>
            <%
                }
              else
              {
            %>
            <p class="title_big news_title">
                Media Report Not Found!</p>
            <%
                }%>
        </div>
    </div>
</asp:Content>
